﻿using System.Configuration;


namespace RaceList
{
    public static class ConnHelper
    {
        /// <summary>
        ///     获取数据操作接口（linq）
        /// </summary>
        /// <returns></returns>
        public static ipowdb_suibian_webDataContext ipowdb_suibian_web()
        {
            ipowdb_suibian_webDataContext context = null;
            context = new ipowdb_suibian_webDataContext(GetConnectionString());
            return context;
        }

        private static string GetConnectionString()
        {
            string connectionString = ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString;
            return connectionString;
        }
    }
}